package com.yym.cloudweb.util;

import java.io.*;

public class FileUtil {

    public static String readLocalFile(String path) throws IOException {
        File file = new File(path);
        FileReader reader = new FileReader(file);
        BufferedReader bReader = new BufferedReader(reader);
        StringBuilder sb = new StringBuilder();
        String s= "";
        while ((s = bReader.readLine()) != null) {
            sb.append(s);
        }
        bReader.close();
        return sb.toString();
    }

}
